package com.nhjf.mobile.controller.recodPush;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.nhjf.mobile.common.util.recordPushTest;

@Controller
@RequestMapping("/recodPushContoller")
public class recodPushContoller {

	

	//test
//	@ResponseBody
//	@RequestMapping("/recordPush")
//	public String recordPush() {
//		Map<String, Object> resMap=new HashMap<String, Object>();
//		String inputFile = "D:/file/test/test.mkv";
//		 
//		String outputFile="rtmp://192.168.0.109:1935/rtmp/mytest";
//
//		try {
//			recordPushTest.recordPush(inputFile, outputFile,25);
//		} catch (Exception e) {
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		} catch (InterruptedException e) {
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		} catch (java.lang.Exception e) {
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		}
//		return "gg";
//	}
}
